package com.atguigu.yygh.patient.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user",fallback = PatientFeignClientFallback.class)
public interface PatientFeignClient {
    @GetMapping("/user/patient/getPatient/{patientId}")
    public Patient getPatient(@PathVariable("patientId") Long patientId);
}
